package com.atde._04_structural_design_patterns.adapter.classadapter;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.adapter.classadapter
 * @Author: Del
 * @CreateTime: 2025-06-18  19:57
 * @Description: 适配器模式 --- 类适配器模式 --- 适配器类
 * @Version: 1.0
 */
public class VoltageAdapter extends Voltege220V implements IVoitage5V {
    @Override
    public int output5V() {
        int srcV = output220V();
        int dstV = srcV / 44;
        System.out.println("适配器类输出电压：" + dstV);
        return dstV;
    }
}
